﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KiemTraThietBi : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("AdvNhanVienKiemTra")]
        private ADVObjects _AdvNhanVienKiemTra;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("CboDieuKienSuaChua")]
        private ComboBox _CboDieuKienSuaChua;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdTimSoTiepNhan")]
        private Button _CmdTimSoTiepNhan;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtDiaChi")]
        private TextBox _TxtDiaChi;
        [AccessedThroughProperty("TxtKetLuan")]
        private TextBox _TxtKetLuan;
        [AccessedThroughProperty("TxtMaThietBi")]
        private TextBox _TxtMaThietBi;
        [AccessedThroughProperty("TxtNgayKiemTra")]
        private C1DateEdit _TxtNgayKiemTra;
        [AccessedThroughProperty("TxtNgayTiepNhan")]
        private C1DateEdit _TxtNgayTiepNhan;
        [AccessedThroughProperty("TxtNguyenNhan")]
        private TextBox _TxtNguyenNhan;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoSerial")]
        private TextBox _TxtSoSerial;
        [AccessedThroughProperty("TxtTenThietBi")]
        private TextBox _TxtTenThietBi;
        [AccessedThroughProperty("TxtThongTinXuLy")]
        private TextBox _TxtThongTinXuLy;
        [AccessedThroughProperty("TxtTienCong")]
        private C1NumericEdit _TxtTienCong;
        [AccessedThroughProperty("TxtTienThietBi")]
        private C1NumericEdit _TxtTienThietBi;
        [AccessedThroughProperty("txtTyGia")]
        private C1NumericEdit _txtTyGia;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        [AccessedThroughProperty("VSListDeXuat")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListDeXuat;
        public string cfrmKhoaTiepNhan;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private clsSCDeXuatSuaChuaChiTiet objDX;
        private clsDMHangHoa objHH;
        private clsSCKiemTraThietBiChiTiet objKT;
        private clsSuaChuaThietBi objTN;

        public Frm_KiemTraThietBi()
        {
            base.Load += new EventHandler(this.Frm_KiemTraThietBi_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.mAllowEdit = true;
            this.mAllowDel = false;
            this.mAllowView = false;
            this.mAllowAdd = false;
            this.cfrmKhoaTiepNhan = "";
            this.objTN = new clsSuaChuaThietBi();
            this.objKT = new clsSCKiemTraThietBiChiTiet();
            this.objDX = new clsSCDeXuatSuaChuaChiTiet();
            this.objHH = new clsDMHangHoa();
            this.InitializeComponent();
        }

        public void AddNew()
        {
            this.EnabledControl = true;
            this.EmptyData();
            this.LoadDetailKiemTra(this.cfrmKhoaTiepNhan);
            this.CboLoaiTien.SelectedValue = modGeneral.H_CURRENCY;
            this.txtTyGia.Value = 1;
            this.TxtNgayKiemTra.Value = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
        }

        public bool CheckIvalid()
        {
            if (this.cfrmKhoaTiepNhan.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn phiếu tiếp nhận thiết bị!", ""));
                this.CmdTimSoTiepNhan.Focus();
                return false;
            }
            if (this.AdvNhanVienKiemTra.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập nh\x00e2n vi\x00ean kiểm tra!", ""));
                this.AdvNhanVienKiemTra.Focus();
                return false;
            }
            if (this.TxtNguyenNhan.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập nguy\x00ean nh\x00e2n hư hỏng thiết bị!", ""));
                this.TxtNguyenNhan.Focus();
                return false;
            }
            if (this.TxtKetLuan.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập kết luận kiểm tra thiết bị!", ""));
                this.TxtKetLuan.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            this.AddNew();
            this.CmdTimSoTiepNhan_Click(this.CmdTimSoTiepNhan, e);
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            this.VSListDeXuat.AddItem("");
            this.VSListDeXuat.Select(this.VSListDeXuat.Rows.Count - 1, 1);
            this.VSListDeXuat.Focus();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (this.cfrmKhoaTiepNhan.Trim() != "")
            {
                this.objTN.Load(this.cfrmKhoaTiepNhan);
                if (this.objTN.NgayTraHang.Trim() != "")
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Thiết bị đ\x00e3 được b\x00e0n giao, bạn kh\x00f4ng thể x\x00f3a!", ""));
                }
                else if (LVYModule.ConfirmDelete("") && this.objTN.KiemTraThietBi("-"))
                {
                    this.EmptyData();
                }
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            this.EnabledControl = true;
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TiepNhanList.Dispose();
            MyProject.Forms.Frm_TiepNhanList.objFrmCall = this;
            MyProject.Forms.Frm_TiepNhanList.strCondition = " RTRIM(TN.NgayKiemTra) <> ''";
            MyProject.Forms.Frm_TiepNhanList.ShowDialog();
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if ((this.CheckIvalid() && this.SaveKiemTra()) && this.SaveDeXuat())
            {
                if (!this.UpdateData())
                {
                    this.objTN.ClearTemp(this.cfrmKhoaTiepNhan);
                }
                else
                {
                    this.EnabledControl = false;
                }
            }
        }

        private void CmdTimSoTiepNhan_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TiepNhanList.Dispose();
            MyProject.Forms.Frm_TiepNhanList.objFrmCall = this;
            MyProject.Forms.Frm_TiepNhanList.strCondition = " RTRIM(IsNull(NgayKiemTra,'')) = '' ";
            MyProject.Forms.Frm_TiepNhanList.ShowDialog();
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            this.EnabledControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public void EmptyData()
        {
            this.cfrmKhoaTiepNhan = "";
            this.TxtMaThietBi.Text = "";
            this.TxtTenThietBi.Text = "";
            this.TxtSoSerial.Text = "";
            this.AdvKhachHang.Value = "";
            this.TxtDiaChi.Text = "";
            this.TxtNguyenNhan.Text = "";
            this.TxtKetLuan.Text = "";
            this.VSlist.Rows.Count = 1;
            this.VSListDeXuat.Rows.Count = 1;
            this.TxtTienThietBi.Value = 0;
            this.TxtTienCong.Value = 0;
            this.AdvNhanVienKiemTra.Value = "";
        }

        private void Frm_KiemTraThietBi_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.CboDieuKienSuaChua.Items.Clear();
                this.CboDieuKienSuaChua.Items.Add(modGeneral.Tranlated("Bảo h\x00e0nh sản phẩm", ""));
                this.CboDieuKienSuaChua.Items.Add(modGeneral.Tranlated("Sửa chữa thu ph\x00ed", ""));
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                LVYModule.advFormatNumber(this.txtTyGia, modGeneral.H_FORMATNUMBER);
                LVYModule.advFormatNumber(this.TxtTienThietBi, modGeneral.H_FORMATNUMBER);
                LVYModule.advFormatNumber(this.TxtTienCong, modGeneral.H_FORMATNUMBER);
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                Hashtable hashtable = new Hashtable();
                hashtable.Add("0", "B\x00ecnh thường");
                hashtable.Add("1", "Hỏng");
                vSlist.Cols[3].DataMap = hashtable;
                vSlist = null;
                C1.Win.C1FlexGrid.C1FlexGrid vSListDeXuat = this.VSListDeXuat;
                Hashtable hashtable2 = new Hashtable();
                hashtable2.Add("0", "C\x00f4ng");
                hashtable2.Add("1", "Phụ t\x00f9ng");
                vSListDeXuat.Cols[1].DataMap = hashtable2;
                vSListDeXuat.Cols[7].DataMap = LVYModule.MapDataDanhMuc(modGeneral.ListDanhMuc.DonViTinh);
                vSListDeXuat = null;
                if (this.cfrmKhoaTiepNhan.Trim() != "")
                {
                    this.ShowData(this.cfrmKhoaTiepNhan);
                }
                this.EnabledControl = false;
                this.C1DockingTab2.SelectedIndex = 0;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KiemTraThietBi));
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.Label20 = new Label();
            this.CboDieuKienSuaChua = new ComboBox();
            this.TxtNguyenNhan = new TextBox();
            this.Label14 = new Label();
            this.TxtNgayKiemTra = new C1DateEdit();
            this.Label5 = new Label();
            this.TxtKetLuan = new TextBox();
            this.Label1 = new Label();
            this.TxtDiaChi = new TextBox();
            this.Label9 = new Label();
            this.Label8 = new Label();
            this.Label4 = new Label();
            this.TxtSoSerial = new TextBox();
            this.TxtTenThietBi = new TextBox();
            this.Label3 = new Label();
            this.TxtMaThietBi = new TextBox();
            this.CmdTimSoTiepNhan = new Button();
            this.TxtNgayTiepNhan = new C1DateEdit();
            this.Label13 = new Label();
            this.TxtSoChungTu = new TextBox();
            this.Label2 = new Label();
            this.Label12 = new Label();
            this.C1DockingTab2 = new C1DockingTab();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            this.TxtTienCong = new C1NumericEdit();
            this.Label6 = new Label();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.CboLoaiTien = new ComboBox();
            this.txtTyGia = new C1NumericEdit();
            this.Label11 = new Label();
            this.Label10 = new Label();
            this.TxtTienThietBi = new C1NumericEdit();
            this.Label7 = new Label();
            this.VSListDeXuat = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.TxtThongTinXuLy = new TextBox();
            this.Label15 = new Label();
            this.AdvNhanVienKiemTra = new ADVObjects();
            this.AdvKhachHang = new ADVObjects();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            ((ISupportInitialize) this.TxtNgayKiemTra).BeginInit();
            ((ISupportInitialize) this.TxtNgayTiepNhan).BeginInit();
            ((ISupportInitialize) this.C1DockingTab2).BeginInit();
            this.C1DockingTab2.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.VSlist.BeginInit();
            this.C1DockingTabPage3.SuspendLayout();
            ((ISupportInitialize) this.TxtTienCong).BeginInit();
            ((ISupportInitialize) this.txtTyGia).BeginInit();
            ((ISupportInitialize) this.TxtTienThietBi).BeginInit();
            this.VSListDeXuat.BeginInit();
            this.ToolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Top;
            Point point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            Size size = new Size(0x37e, 0xb1);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.TxtThongTinXuLy);
            this.C1DockingTabPage1.Controls.Add(this.Label15);
            this.C1DockingTabPage1.Controls.Add(this.Label20);
            this.C1DockingTabPage1.Controls.Add(this.CboDieuKienSuaChua);
            this.C1DockingTabPage1.Controls.Add(this.TxtNguyenNhan);
            this.C1DockingTabPage1.Controls.Add(this.Label14);
            this.C1DockingTabPage1.Controls.Add(this.AdvNhanVienKiemTra);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayKiemTra);
            this.C1DockingTabPage1.Controls.Add(this.Label5);
            this.C1DockingTabPage1.Controls.Add(this.TxtKetLuan);
            this.C1DockingTabPage1.Controls.Add(this.Label1);
            this.C1DockingTabPage1.Controls.Add(this.TxtDiaChi);
            this.C1DockingTabPage1.Controls.Add(this.Label9);
            this.C1DockingTabPage1.Controls.Add(this.Label8);
            this.C1DockingTabPage1.Controls.Add(this.AdvKhachHang);
            this.C1DockingTabPage1.Controls.Add(this.Label4);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoSerial);
            this.C1DockingTabPage1.Controls.Add(this.TxtTenThietBi);
            this.C1DockingTabPage1.Controls.Add(this.Label3);
            this.C1DockingTabPage1.Controls.Add(this.TxtMaThietBi);
            this.C1DockingTabPage1.Controls.Add(this.CmdTimSoTiepNhan);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayTiepNhan);
            this.C1DockingTabPage1.Controls.Add(this.Label13);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoChungTu);
            this.C1DockingTabPage1.Controls.Add(this.Label2);
            this.C1DockingTabPage1.Controls.Add(this.Label12);
            point = new Point(1, 0x18);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x37c, 0x98);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin thiết bị";
            this.Label20.AutoSize = true;
            this.Label20.BackColor = Color.Transparent;
            point = new Point(0x1ce, 80);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x4a, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 20;
            this.Label20.Text = "Loại sửa chữa";
            this.CboDieuKienSuaChua.FormattingEnabled = true;
            this.CboDieuKienSuaChua.Items.AddRange(new object[] { "Mới tiếp nhận", "Đ\x00e3 kiểm tra", "Đ\x00e3 giao" });
            point = new Point(0x22d, 0x4d);
            this.CboDieuKienSuaChua.Location = point;
            this.CboDieuKienSuaChua.Name = "CboDieuKienSuaChua";
            size = new Size(320, 0x15);
            this.CboDieuKienSuaChua.Size = size;
            this.CboDieuKienSuaChua.TabIndex = 0x15;
            point = new Point(0x6f, 0x4d);
            this.TxtNguyenNhan.Location = point;
            this.TxtNguyenNhan.Name = "TxtNguyenNhan";
            size = new Size(320, 20);
            this.TxtNguyenNhan.Size = size;
            this.TxtNguyenNhan.TabIndex = 0x13;
            this.Label14.AutoSize = true;
            this.Label14.BackColor = Color.Transparent;
            point = new Point(8, 80);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x47, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 0x12;
            this.Label14.Text = "Nguy\x00ean nh\x00e2n";
            this.TxtNgayKiemTra.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayKiemTra.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayKiemTra.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayKiemTra.Calendar.ClearText = "&Clear";
            this.TxtNgayKiemTra.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Padding padding = new Padding(0);
            this.TxtNgayKiemTra.Calendar.Margin = padding;
            this.TxtNgayKiemTra.Calendar.MonthlyBoldedDates = new DateTime[0];
            DateTime time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayKiemTra.Calendar.SelectedDate = time;
            this.TxtNgayKiemTra.Calendar.TodayText = "&Today";
            this.TxtNgayKiemTra.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayKiemTra.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayKiemTra.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayKiemTra.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayKiemTra.FormatType = FormatTypeEnum.ShortDate;
            point = new Point(0x145, 0x35);
            this.TxtNgayKiemTra.Location = point;
            this.TxtNgayKiemTra.Name = "TxtNgayKiemTra";
            padding = new Padding(1);
            this.TxtNgayKiemTra.Padding = padding;
            this.TxtNgayKiemTra.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtNgayKiemTra.Size = size;
            this.TxtNgayKiemTra.TabIndex = 15;
            this.TxtNgayKiemTra.Tag = null;
            this.TxtNgayKiemTra.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(0xe8, 0x37);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x48, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 14;
            this.Label5.Text = "Ng\x00e0y kiểm tra";
            point = new Point(0x6f, 0x65);
            this.TxtKetLuan.Location = point;
            this.TxtKetLuan.Name = "TxtKetLuan";
            size = new Size(0x2fe, 20);
            this.TxtKetLuan.Size = size;
            this.TxtKetLuan.TabIndex = 0x17;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(8, 0x68);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x2e, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x16;
            this.Label1.Text = "Kết luận";
            point = new Point(0x22d, 0x1d);
            this.TxtDiaChi.Location = point;
            this.TxtDiaChi.Name = "TxtDiaChi";
            this.TxtDiaChi.ReadOnly = true;
            size = new Size(320, 20);
            this.TxtDiaChi.Size = size;
            this.TxtDiaChi.TabIndex = 11;
            this.Label9.AutoSize = true;
            this.Label9.BackColor = Color.Transparent;
            point = new Point(0x1ce, 30);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            size = new Size(40, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 10;
            this.Label9.Text = "Địa chỉ";
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0x1ce, 6);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x41, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 5;
            this.Label8.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(7, 0x38);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x2f, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 12;
            this.Label4.Text = "Số serial";
            point = new Point(0x6f, 0x35);
            this.TxtSoSerial.Location = point;
            this.TxtSoSerial.Name = "TxtSoSerial";
            this.TxtSoSerial.ReadOnly = true;
            size = new Size(100, 20);
            this.TxtSoSerial.Size = size;
            this.TxtSoSerial.TabIndex = 13;
            point = new Point(0xd4, 0x1d);
            this.TxtTenThietBi.Location = point;
            this.TxtTenThietBi.Name = "TxtTenThietBi";
            this.TxtTenThietBi.ReadOnly = true;
            size = new Size(0xda, 20);
            this.TxtTenThietBi.Size = size;
            this.TxtTenThietBi.TabIndex = 9;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(7, 0x20);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x38, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 7;
            this.Label3.Text = "M\x00e3 thiết bị";
            point = new Point(0x6f, 0x1d);
            this.TxtMaThietBi.Location = point;
            this.TxtMaThietBi.Name = "TxtMaThietBi";
            this.TxtMaThietBi.ReadOnly = true;
            size = new Size(100, 20);
            this.TxtMaThietBi.Size = size;
            this.TxtMaThietBi.TabIndex = 8;
            point = new Point(0xd4, 4);
            this.CmdTimSoTiepNhan.Location = point;
            this.CmdTimSoTiepNhan.Name = "CmdTimSoTiepNhan";
            size = new Size(0x18, 0x16);
            this.CmdTimSoTiepNhan.Size = size;
            this.CmdTimSoTiepNhan.TabIndex = 2;
            this.CmdTimSoTiepNhan.Text = "...";
            this.CmdTimSoTiepNhan.UseVisualStyleBackColor = true;
            this.TxtNgayTiepNhan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayTiepNhan.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayTiepNhan.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayTiepNhan.Calendar.ClearText = "&Clear";
            this.TxtNgayTiepNhan.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            padding = new Padding(0);
            this.TxtNgayTiepNhan.Calendar.Margin = padding;
            this.TxtNgayTiepNhan.Calendar.MonthlyBoldedDates = new DateTime[0];
            time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayTiepNhan.Calendar.SelectedDate = time;
            this.TxtNgayTiepNhan.Calendar.TodayText = "&Today";
            this.TxtNgayTiepNhan.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayTiepNhan.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayTiepNhan.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayTiepNhan.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayTiepNhan.FormatType = FormatTypeEnum.ShortDate;
            point = new Point(0x145, 5);
            this.TxtNgayTiepNhan.Location = point;
            this.TxtNgayTiepNhan.Name = "TxtNgayTiepNhan";
            padding = new Padding(1);
            this.TxtNgayTiepNhan.Padding = padding;
            this.TxtNgayTiepNhan.ReadOnly = true;
            size = new Size(0x69, 20);
            this.TxtNgayTiepNhan.Size = size;
            this.TxtNgayTiepNhan.TabIndex = 4;
            this.TxtNgayTiepNhan.Tag = null;
            this.TxtNgayTiepNhan.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtNgayTiepNhan.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtNgayTiepNhan.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new Point(0xec, 8);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x4f, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 3;
            this.Label13.Text = "Ng\x00e0y tiếp nhận";
            point = new Point(0x6f, 5);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            this.TxtSoChungTu.ReadOnly = true;
            size = new Size(100, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 1;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(7, 8);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x43, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0;
            this.Label2.Text = "Số tiếp nhận";
            this.Label12.AutoSize = true;
            this.Label12.BackColor = Color.Transparent;
            point = new Point(0x1ce, 0x38);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            size = new Size(0x60, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x10;
            this.Label12.Text = "Nh\x00e2n vi\x00ean kiểm tra";
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage2);
            this.C1DockingTab2.Controls.Add(this.C1DockingTabPage3);
            this.C1DockingTab2.Dock = DockStyle.Fill;
            point = new Point(0, 0xca);
            this.C1DockingTab2.Location = point;
            this.C1DockingTab2.Name = "C1DockingTab2";
            this.C1DockingTab2.SelectedIndex = 1;
            size = new Size(0x37e, 0x16e);
            this.C1DockingTab2.Size = size;
            this.C1DockingTab2.TabIndex = 1;
            this.C1DockingTab2.TabsSpacing = 0;
            this.C1DockingTab2.TabStyle = TabStyleEnum.WindowsXP;
            this.C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.WindowsXP;
            this.C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.WindowsXP;
            this.C1DockingTabPage2.Controls.Add(this.VSlist);
            point = new Point(2, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x378, 0x151);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 0;
            this.C1DockingTabPage2.Text = "Kết quả kiểm tra";
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            this.VSlist.KeyActionTab = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.MinSize = 20;
            this.VSlist.SelectionMode = SelectionModeEnum.Cell;
            size = new Size(0x378, 0x151);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 120;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.C1DockingTabPage3.Controls.Add(this.TxtTienCong);
            this.C1DockingTabPage3.Controls.Add(this.Label6);
            this.C1DockingTabPage3.Controls.Add(this.CmdDelRow);
            this.C1DockingTabPage3.Controls.Add(this.CmdAddRow);
            this.C1DockingTabPage3.Controls.Add(this.CboLoaiTien);
            this.C1DockingTabPage3.Controls.Add(this.txtTyGia);
            this.C1DockingTabPage3.Controls.Add(this.Label11);
            this.C1DockingTabPage3.Controls.Add(this.Label10);
            this.C1DockingTabPage3.Controls.Add(this.TxtTienThietBi);
            this.C1DockingTabPage3.Controls.Add(this.Label7);
            this.C1DockingTabPage3.Controls.Add(this.VSListDeXuat);
            point = new Point(2, 0x19);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x378, 0x151);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 1;
            this.C1DockingTabPage3.Text = "Đề xuất sửa chữa";
            this.TxtTienCong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienCong.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            this.TxtTienCong.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x303, 0x13c);
            this.TxtTienCong.Location = point;
            this.TxtTienCong.Name = "TxtTienCong";
            padding = new Padding(1);
            this.TxtTienCong.Padding = padding;
            this.TxtTienCong.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtTienCong.Size = size;
            this.TxtTienCong.TabIndex = 0x83;
            this.TxtTienCong.Tag = null;
            this.TxtTienCong.TextAlign = HorizontalAlignment.Right;
            this.TxtTienCong.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienCong.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienCong.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label6.AutoEllipsis = true;
            this.Label6.AutoSize = true;
            this.Label6.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x2a7, 0x13f);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            this.Label6.RightToLeft = RightToLeft.No;
            size = new Size(0x40, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 130;
            this.Label6.Text = "Tiền c\x00f4ng";
            this.Label6.TextAlign = ContentAlignment.TopRight;
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(100, 0x13c);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x59, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 0x81;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(3, 0x13c);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5c, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0x80;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x110, 0x13d);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x68, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 0x7c;
            this.txtTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.txtTyGia.DataType = typeof(double);
            this.txtTyGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x1bc, 0x13e);
            this.txtTyGia.Location = point;
            this.txtTyGia.Name = "txtTyGia";
            padding = new Padding(1);
            this.txtTyGia.Padding = padding;
            size = new Size(0x65, 20);
            this.txtTyGia.Size = size;
            this.txtTyGia.TabIndex = 0x7d;
            this.txtTyGia.Tag = null;
            this.txtTyGia.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.txtTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.txtTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label11.AutoSize = true;
            point = new Point(220, 320);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x7f;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label10.AutoSize = true;
            point = new Point(0x183, 320);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            size = new Size(0x24, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x7e;
            this.Label10.Text = "Tỷ gi\x00e1";
            this.Label10.TextAlign = ContentAlignment.TopRight;
            this.TxtTienThietBi.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienThietBi.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            this.TxtTienThietBi.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x303, 340);
            this.TxtTienThietBi.Location = point;
            this.TxtTienThietBi.Name = "TxtTienThietBi";
            padding = new Padding(1);
            this.TxtTienThietBi.Padding = padding;
            this.TxtTienThietBi.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtTienThietBi.Size = size;
            this.TxtTienThietBi.TabIndex = 0x7b;
            this.TxtTienThietBi.Tag = null;
            this.TxtTienThietBi.TextAlign = HorizontalAlignment.Right;
            this.TxtTienThietBi.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienThietBi.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienThietBi.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label7.AutoEllipsis = true;
            this.Label7.AutoSize = true;
            this.Label7.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(0x2a7, 0x157);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            this.Label7.RightToLeft = RightToLeft.No;
            size = new Size(0x56, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 0x7a;
            this.Label7.Text = "Tiền phụ t\x00f9ng";
            this.Label7.TextAlign = ContentAlignment.TopRight;
            this.VSListDeXuat.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSListDeXuat.ColumnInfo = manager.GetString("VSListDeXuat.ColumnInfo");
            this.VSListDeXuat.Dock = DockStyle.Top;
            this.VSListDeXuat.ExtendLastCol = true;
            this.VSListDeXuat.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSListDeXuat.Location = point;
            this.VSListDeXuat.Name = "VSListDeXuat";
            this.VSListDeXuat.Rows.Count = 1;
            this.VSListDeXuat.Rows.DefaultSize = 0x11;
            this.VSListDeXuat.Rows.MinSize = 20;
            size = new Size(0x378, 0x139);
            this.VSListDeXuat.Size = size;
            this.VSListDeXuat.StyleInfo = manager.GetString("VSListDeXuat.StyleInfo");
            this.VSListDeXuat.TabIndex = 0x79;
            this.VSListDeXuat.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x37e, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x48, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2d, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x37, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x43, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2d, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x37, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.Magenta;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x30, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            point = new Point(0x6f, 0x7e);
            this.TxtThongTinXuLy.Location = point;
            this.TxtThongTinXuLy.Name = "TxtThongTinXuLy";
            size = new Size(0x2fe, 20);
            this.TxtThongTinXuLy.Size = size;
            this.TxtThongTinXuLy.TabIndex = 0x19;
            this.Label15.AutoSize = true;
            this.Label15.BackColor = Color.Transparent;
            point = new Point(8, 0x81);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            size = new Size(0x3f, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x18;
            this.Label15.Text = "Hướng xử l\x00fd";
            this.AdvNhanVienKiemTra.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x22d, 0x35);
            this.AdvNhanVienKiemTra.Location = point;
            this.AdvNhanVienKiemTra.Name = "AdvNhanVienKiemTra";
            this.AdvNhanVienKiemTra.ReadOnly = false;
            size = new Size(320, 20);
            this.AdvNhanVienKiemTra.Size = size;
            this.AdvNhanVienKiemTra.TabIndex = 0x11;
            this.AdvNhanVienKiemTra.UpperText = true;
            this.AdvNhanVienKiemTra.Value = "";
            this.AdvNhanVienKiemTra.WidthCode = 90;
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0x22d, 5);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = true;
            size = new Size(320, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 6;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 90;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x238);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.C1DockingTab2);
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_KiemTraThietBi";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "SC-0002";
            this.Text = "KIEM TRA THIET BI";
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage1.PerformLayout();
            ((ISupportInitialize) this.TxtNgayKiemTra).EndInit();
            ((ISupportInitialize) this.TxtNgayTiepNhan).EndInit();
            ((ISupportInitialize) this.C1DockingTab2).EndInit();
            this.C1DockingTab2.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.VSlist.EndInit();
            this.C1DockingTabPage3.ResumeLayout(false);
            this.C1DockingTabPage3.PerformLayout();
            ((ISupportInitialize) this.TxtTienCong).EndInit();
            ((ISupportInitialize) this.txtTyGia).EndInit();
            ((ISupportInitialize) this.TxtTienThietBi).EndInit();
            this.VSListDeXuat.EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void InsertTiepNhanThietBi(string strKhoaTiepNhan)
        {
            clsSuaChuaThietBi objTN = this.objTN;
            this.objTN.Load(strKhoaTiepNhan);
            if (this.objTN.NgayKiemTra.Trim() != "")
            {
                this.ShowData(strKhoaTiepNhan);
            }
            else
            {
                this.cfrmKhoaTiepNhan = strKhoaTiepNhan;
                this.TxtSoChungTu.Text = objTN.SoChungTu;
                this.TxtNgayTiepNhan.Value = LVYModule.Char2Date(objTN.NgayTiepNhan);
                this.objHH.Load(objTN.KhoaHangHoa);
                this.TxtMaThietBi.Tag = objTN.KhoaHangHoa;
                this.TxtMaThietBi.Text = this.objHH.Ma;
                this.TxtTenThietBi.Text = this.objHH.TenViet;
                this.AdvKhachHang.Value = objTN.KhoaDoiTuong;
                this.TxtSoSerial.Text = objTN.SoSerial;
                this.CboDieuKienSuaChua.SelectedIndex = objTN.LoaiSuaChua;
                this.TxtThongTinXuLy.Text = objTN.DienGiai;
            }
            objTN = null;
        }

        public void LoadDetailKiemTra(string strKhoa)
        {
            DataTable detailsKiemTra = this.objTN.GetDetailsKiemTra(strKhoa);
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            vSlist.Rows.Count = 1;
            int num2 = detailsKiemTra.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSlist.AddItem("");
                vSlist[i + 1, 0] = RuntimeHelpers.GetObjectValue(detailsKiemTra.Rows[i]["Khoa"]);
                vSlist[i + 1, 1] = RuntimeHelpers.GetObjectValue(detailsKiemTra.Rows[i]["KhoaHangMuc"]);
                vSlist[i + 1, 2] = RuntimeHelpers.GetObjectValue(detailsKiemTra.Rows[i]["TenHangMuc"]);
                vSlist[i + 1, 3] = detailsKiemTra.Rows[i]["TinhTrang"].ToString().Trim();
                vSlist[i + 1, 4] = RuntimeHelpers.GetObjectValue(detailsKiemTra.Rows[i]["DienGiai"]);
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i + 1, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "0")
                {
                    LVYModule.SetColorForGrid(this.VSlist, Color.White, i + 1, 0, 0, 0);
                }
                else
                {
                    LVYModule.SetColorForGrid(this.VSlist, Color.GreenYellow, i + 1, 0, 0, 0);
                }
            }
            vSlist = null;
        }

        public void LoadDetailsDexuat(string strKhoa)
        {
            DataTable detailsDeXuat = this.objTN.GetDetailsDeXuat(strKhoa);
            C1.Win.C1FlexGrid.C1FlexGrid vSListDeXuat = this.VSListDeXuat;
            vSListDeXuat.Rows.Count = 1;
            int num2 = detailsDeXuat.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                vSListDeXuat.AddItem("");
                vSListDeXuat[i + 1, 0] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["Khoa"]);
                vSListDeXuat[i + 1, 1] = detailsDeXuat.Rows[i]["Loai"].ToString().Trim();
                vSListDeXuat[i + 1, 2] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["NoiDung"]);
                vSListDeXuat[i + 1, 3] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["KhoaHangHoa"]);
                vSListDeXuat[i + 1, 4] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["MaHang"]);
                vSListDeXuat[i + 1, 5] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["NguonHang"]);
                vSListDeXuat[i + 1, 6] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["SoSerial"]);
                vSListDeXuat[i + 1, 7] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["KhoaDonViTinh"]);
                vSListDeXuat[i + 1, 8] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["SoLuong"]);
                vSListDeXuat[i + 1, 9] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["DonGia"]);
                vSListDeXuat[i + 1, 10] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["ThanhTien"]);
                vSListDeXuat[i + 1, 11] = RuntimeHelpers.GetObjectValue(detailsDeXuat.Rows[i]["DienGiai"]);
            }
            vSListDeXuat = null;
        }

        public bool SaveDeXuat()
        {
            C1.Win.C1FlexGrid.C1FlexGrid vSListDeXuat = this.VSListDeXuat;
            int num2 = vSListDeXuat.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    vSListDeXuat[i, 0] = modGeneral.CreatKey("SC_DeXuatSuaChua", 15, "DX");
                }
                this.objDX.Khoa = Conversions.ToString(vSListDeXuat[i, 0]);
                this.objDX.KhoaTiepNhan = this.cfrmKhoaTiepNhan;
                this.objDX.Loai = Conversions.ToInteger(vSListDeXuat[i, 1]);
                this.objDX.NoiDung = Conversions.ToString(vSListDeXuat[i, 2]);
                this.objDX.KhoaHangHoa = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 3]), "", modGeneral.TypeOfValue.Nothing));
                this.objDX.NguonHang = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 5]), "", modGeneral.TypeOfValue.Nothing));
                this.objDX.SoSerial = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 6]), "", modGeneral.TypeOfValue.Nothing));
                this.objDX.DienGiai = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 11]), "", modGeneral.TypeOfValue.Nothing));
                this.objDX.LoaiTien = Conversions.ToString(this.CboLoaiTien.SelectedValue);
                this.objDX.TyGia = Conversions.ToDouble(this.txtTyGia.Value);
                this.objDX.KhoaDonViTinh = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 7]), "", modGeneral.TypeOfValue.Nothing));
                this.objDX.SoLuong = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 8]), 1, modGeneral.TypeOfValue.Nothing));
                this.objDX.DonGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 9]), 0, modGeneral.TypeOfValue.Nothing));
                this.objDX.ThanhTien = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                if (!this.objDX.Save())
                {
                    return false;
                }
            }
            vSListDeXuat = null;
            return true;
        }

        public bool SaveKiemTra()
        {
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            int num2 = vSlist.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    vSlist[i, 0] = modGeneral.CreatKey("SC_NoiDungKiemTraLoiThietBi", 15, "KT");
                }
                this.objKT.Khoa = Conversions.ToString(vSlist[i, 0]);
                this.objKT.KhoaHangMuc = Conversions.ToString(vSlist[i, 1]);
                this.objKT.KhoaTiepNhan = this.cfrmKhoaTiepNhan;
                this.objKT.TinhTrang = Conversions.ToInteger(vSlist[i, 3]);
                this.objKT.DienGiai = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[i, 4]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                if (!this.objKT.Save())
                {
                    return false;
                }
            }
            vSlist = null;
            return true;
        }

        public void ShowData(string pKhoa)
        {
            this.objTN.Load(pKhoa);
            this.cfrmKhoaTiepNhan = pKhoa;
            this.TxtSoChungTu.Text = this.objTN.SoChungTu;
            this.TxtNgayTiepNhan.Value = LVYModule.Char2Date(this.objTN.NgayChungTu);
            this.AdvKhachHang.Value = this.objTN.KhoaDoiTuong;
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            tuong.Load(this.objTN.KhoaDoiTuong);
            this.TxtDiaChi.Text = tuong.DiaChi;
            this.objHH.Load(this.objTN.KhoaHangHoa);
            this.TxtMaThietBi.Text = this.objHH.Ma;
            this.TxtTenThietBi.Text = this.objHH.TenViet;
            this.TxtSoSerial.Text = this.objTN.SoSerial;
            this.TxtNgayKiemTra.Value = LVYModule.Char2Date(this.objTN.NgayKiemTra);
            this.TxtNguyenNhan.Text = this.objTN.NguyenNhan.Trim();
            this.TxtKetLuan.Text = this.objTN.XacDinhLoi.Trim();
            this.AdvNhanVienKiemTra.Value = this.objTN.KhoaNhanVienTiepNhan;
            this.CboLoaiTien.SelectedValue = this.objTN.LoaiTien;
            this.txtTyGia.Value = this.objTN.TyGia;
            this.CboDieuKienSuaChua.SelectedIndex = this.objTN.LoaiSuaChua;
            this.TxtTienCong.Value = this.objTN.TriGiaNhanCong;
            this.TxtTienThietBi.Value = this.objTN.TriGiaThietBiThayThe;
            this.TxtThongTinXuLy.Text = this.objTN.DienGiai;
            this.LoadDetailKiemTra(pKhoa);
            this.LoadDetailsDexuat(pKhoa);
        }

        public void TinhTong()
        {
            double num2 = 0.0;
            double num3 = 0.0;
            C1.Win.C1FlexGrid.C1FlexGrid vSListDeXuat = this.VSListDeXuat;
            int num4 = vSListDeXuat.Rows.Count - 1;
            for (int i = 1; i <= num4; i++)
            {
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 1]), "", modGeneral.TypeOfValue.Nothing), "0", false))
                {
                    num2 += Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                }
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 1]), "", modGeneral.TypeOfValue.Nothing), "1", false))
                {
                    num3 += Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSListDeXuat[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                }
            }
            vSListDeXuat = null;
            this.TxtTienCong.Value = num2;
            this.TxtTienThietBi.Value = num3;
        }

        public bool UpdateData()
        {
            bool flag=false;
            clsSuaChuaThietBi objTN = this.objTN;
            objTN.Khoa = this.cfrmKhoaTiepNhan;
            objTN.NgayKiemTra = LVYModule.Date2Char(Conversions.ToString(this.TxtNgayKiemTra.Value));
            objTN.KhoaNhanVienKiemTra = this.AdvNhanVienKiemTra.Value;
            objTN.NguyenNhan = this.TxtNguyenNhan.Text.Trim();
            objTN.XacDinhLoi = this.TxtKetLuan.Text.Trim();
            objTN.DienGiai = this.TxtThongTinXuLy.Text;
            objTN.LoaiSuaChua = this.CboDieuKienSuaChua.SelectedIndex;
            objTN.LoaiTien = Conversions.ToString(this.CboLoaiTien.SelectedValue);
            objTN.TyGia = Conversions.ToDouble(this.txtTyGia.Value);
            objTN.TriGiaNhanCong = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienCong.Value), 0, modGeneral.TypeOfValue.Nothing));
            objTN.TriGiaThietBiThayThe = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTienThietBi.Value), 0, modGeneral.TypeOfValue.Nothing));
            return objTN.KiemTraThietBi("+");
            objTN = null;
            return flag;
        }

        private void VSlist_AfterEdit(object sender, RowColEventArgs e)
        {
            if (e.Col == 3)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "0")
                {
                    LVYModule.SetColorForGrid(this.VSlist, Color.White, e.Row, 0, 0, 0);
                }
                else
                {
                    LVYModule.SetColorForGrid(this.VSlist, Color.GreenYellow, e.Row, 0, 0, 0);
                }
            }
        }

        private void VSlist_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnableControl)
            {
                e.Cancel = true;
            }
        }

        private void VSListDeXuat_AfterEdit(object sender, RowColEventArgs e)
        {
            switch (e.Col)
            {
                case 8:
                case 9:
                    this.VSListDeXuat[e.Row, 10] = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDeXuat[e.Row, 8]), 0, modGeneral.TypeOfValue.Nothing)) * Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDeXuat[e.Row, 9]), 0, modGeneral.TypeOfValue.Nothing));
                    break;
            }
            this.TinhTong();
        }

        private void VSListDeXuat_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnableControl)
            {
                e.Cancel = true;
            }
            else if ((e.Col == 4) && (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDeXuat[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "0"))
            {
                e.Cancel = true;
            }
        }

        private void VSListDeXuat_CellButtonClick(object sender, RowColEventArgs e)
        {
            string expression = "";
            if (e.Col == 4)
            {
                expression = SearchModule.SearchHangHoa("", "", "");
                if (expression.Trim() != "")
                {
                    string[] strArray = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSListDeXuat[e.Row, 3] = strArray[0];
                    this.VSListDeXuat[e.Row, 4] = strArray[1];
                    this.objHH.Load(strArray[0]);
                    this.VSListDeXuat[e.Row, 7] = this.objHH.KhoaDonViTinh;
                    this.VSListDeXuat[e.Row, 8] = 1;
                }
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual ADVObjects AdvNhanVienKiemTra
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVienKiemTra;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVienKiemTra = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual ComboBox CboDieuKienSuaChua
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDieuKienSuaChua;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDieuKienSuaChua = value;
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTien = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdDelRow = value;
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdHelp = value;
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimSoTiepNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimSoTiepNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTimSoTiepNhan_Click);
                if (this._CmdTimSoTiepNhan != null)
                {
                    this._CmdTimSoTiepNhan.Click -= handler;
                }
                this._CmdTimSoTiepNhan = value;
                if (this._CmdTimSoTiepNhan != null)
                {
                    this._CmdTimSoTiepNhan.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.CmdTimSoTiepNhan.Enabled = value;
                this.TxtKetLuan.ReadOnly = !value;
                this.CboLoaiTien.Enabled = value;
                this.txtTyGia.ReadOnly = !value;
                this.CmdAddRow.Enabled = value;
                this.CmdDelRow.Enabled = value;
                this.TxtNgayKiemTra.ReadOnly = !value;
                this.AdvNhanVienKiemTra.ReadOnly = !value;
                this.TxtNguyenNhan.ReadOnly = !value;
                this.CboDieuKienSuaChua.Enabled = value;
                this.TxtThongTinXuLy.ReadOnly = !value;
                this.CmdAdd.Enabled = !value & this.mAllowEdit;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDiaChi = value;
            }
        }

        internal virtual TextBox TxtKetLuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtKetLuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtKetLuan = value;
            }
        }

        internal virtual TextBox TxtMaThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMaThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMaThietBi = value;
            }
        }

        internal virtual C1DateEdit TxtNgayKiemTra
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayKiemTra;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayKiemTra = value;
            }
        }

        internal virtual C1DateEdit TxtNgayTiepNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayTiepNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayTiepNhan = value;
            }
        }

        internal virtual TextBox TxtNguyenNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNguyenNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNguyenNhan = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual TextBox TxtSoSerial
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoSerial;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoSerial = value;
            }
        }

        internal virtual TextBox TxtTenThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenThietBi = value;
            }
        }

        internal virtual TextBox TxtThongTinXuLy
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtThongTinXuLy;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtThongTinXuLy = value;
            }
        }

        internal virtual C1NumericEdit TxtTienCong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienCong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienCong = value;
            }
        }

        internal virtual C1NumericEdit TxtTienThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienThietBi = value;
            }
        }

        internal virtual C1NumericEdit txtTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtTyGia = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_AfterEdit);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSlist_BeforeEdit);
                if (this._VSlist != null)
                {
                    this._VSlist.AfterEdit -= handler;
                    this._VSlist.BeforeEdit -= handler2;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.AfterEdit += handler;
                    this._VSlist.BeforeEdit += handler2;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListDeXuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListDeXuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSListDeXuat_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSListDeXuat_BeforeEdit);
                RowColEventHandler handler3 = new RowColEventHandler(this.VSListDeXuat_AfterEdit);
                if (this._VSListDeXuat != null)
                {
                    this._VSListDeXuat.CellButtonClick -= handler;
                    this._VSListDeXuat.BeforeEdit -= handler2;
                    this._VSListDeXuat.AfterEdit -= handler3;
                }
                this._VSListDeXuat = value;
                if (this._VSListDeXuat != null)
                {
                    this._VSListDeXuat.CellButtonClick += handler;
                    this._VSListDeXuat.BeforeEdit += handler2;
                    this._VSListDeXuat.AfterEdit += handler3;
                }
            }
        }
    }
}

